/**
 * 添加用户
 * @author Dlfming
 * date 2018/06/10 10:26
 */

"use strict";

define(['app', "config/pathConfig", "layer"], function (app, pathConfig, DTOptionsBuilder, DTColumnDefBuilder, layer) {
    app.registerController('ctrl.sysLog.syslog', function ($scope, $http) {

        // $scope.dtColumnDefs = [
        //     DTColumnDefBuilder.newColumnDef(10).notSortable()
        // ];

        $http.get(pathConfig.backstagePath.getPath() + "/logger")
            .then(function successCallback(response) {
                $scope.log = response.data.data;
            }, function errorCallback(response) {
                layer.msg("获取数据失败！", {icon: 2,time:1500});
            });


    });
});
